import db from '../DB/01db.js';
// addEventListen

export async function getAlluser(req, res) {
    try {
        const [result] = await db.query('select id ,name , from users');
        // console.log(result);
        res.send({
            status: 0,
            message: "请求成功",
            data: result
        })
    } catch (err) {
        res.send({
            status: 1,
            message: '请求失败',
            desc: err.message
        })
    }

}